<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<sec:authentication property="principal" var="currentPrincipal" scope="page" />

<fmt:setBundle basename="ApplicationMessage" />
<fmt:setLocale value="zh_CN" />

<!DOCTYPE html>
<html lang="zh-CN">
<head>

<%@ include file="/WEB-INF/include/meta.jsp"%>
<%@ include file="/WEB-INF/include/css.jsp"%>

</head>

<body class="ms-theme-blue">

  <%@ include file="/WEB-INF/include/header.jsp"%>
  <%@ include file="/WEB-INF/include/submenu.jsp"%>

  <div class="container-fluid ms-container has-ms-sidemenu">
  
    <ol class="ms-breadcrumb breadcrumb">
      <li class="active">牵引车信息审核</li>
      <a href="javascript:window.history.back();" class="pull-right" style="margin-right: 10px;">
        <span class="glyphicon glyphicon-arrow-left"></span>&nbsp;返回
      </a>
    </ol>
  
    <div class="ms-content-layout">
  
      <c:set var="status" value="${tractor.status}"/>
      
      <div class="block-heading">
        <h5>牵引车基本信息</h5>
      </div>
    
      <div class="form-horizontal ms-form form-personal-info">
    
        <div class="form-group ms-form-group">
          <label class="control-label col-xs-3">1&nbsp;<span class="color-red">*</span>运输公司：</label>
          <div class="col-xs-3 pull-left">
            <p class="form-control-static">${tractor.supplier.name}</p>
          </div>
      
          <label class="control-label col-xs-2" style="color:${tractor.floorLord eq version.floorLord ? '' : 'red;'}">2&nbsp;<span class="color-red">*</span>产证所有者：</label>
          <div class="col-xs-3 pull-left">
            <p class="form-control-static" style="color:${tractor.floorLord eq version.floorLord ? '' : 'red;'}">${version.floorLord}</p>
          </div>
        </div>
        
        <div class="form-group ms-form-group">
          <label class="control-label col-xs-3" style="color:${tractor.carOwnership eq version.carOwnership ? '' : 'red;'}">3&nbsp;<span class="color-red">*</span>车辆所属权 ：</label>
          <div class="col-xs-3 pull-left">
            <p class="form-control-static" style="color:${tractor.carOwnership eq version.carOwnership ? '' : 'red;'}">${version.carOwnership.description}</p>
          </div>
      
          <label class="control-label col-xs-2">4&nbsp;<span class="color-red">*</span>运输工具类型 ：</label>
          <div class="col-xs-3 pull-left">
            <p class="form-control-static">${tractor.transMean.description}</p>
          </div>
        </div>
        
        <div class="form-group ms-form-group">
          <label class="control-label col-xs-3">5&nbsp;<span class="color-red">*</span>车辆审核状态：</label>
          <div class="col-xs-3 pull-left">
            <p class="form-control-static">${status.description}</p>
          </div>
      
          <label class="control-label col-xs-2">6&nbsp;<span class="color-red">*</span>车辆状态 ：</label>
          <div class="col-xs-3 pull-left">
            <p class="form-control-static">${tractor.vehicleStatus.description}</p>
          </div>
        </div>
      
        <div class="form-group  ms-form-group">
          <label class="control-label col-xs-3">7&nbsp;<span class="color-red">*</span>牵引车中文车牌号：</label>
          <div class="col-xs-3 pull-left">
            <p class="form-control-static">${tractor.brandCNCode}</p>
          </div>
          
          <label class="control-label col-xs-2">8&nbsp;<span class="color-red">*</span>牵引车英文车牌号：</label>
          <div class="col-xs-3 pull-left">
            <p class="form-control-static">${tractor.brandENCode}</p>
          </div>
        </div>
    
        <div class="form-group  ms-form-group">
          <label class="control-label col-xs-3" style="color:${tractor.brand eq version.brand ? '' : 'red;'}">9&nbsp;<span class="color-red">*</span>牵引车品牌：</label>
          <div class="col-xs-3 pull-left">
            <p class="form-control-static" style="color:${tractor.brand eq version.brand ? '' : 'red;'}">${version.brand}</p>
          </div>
          
          <label class="control-label col-xs-2" style="color:${tractor.vincode eq version.vincode ? '' : 'red;'}">10&nbsp;<span class="color-red">*</span>牵引车VIN码：</label>
          <div class="col-xs-3 pull-left">
            <p class="form-control-static" style="color:${tractor.vincode eq version.vincode ? '' : 'red;'}">${version.vincode}</p>
          </div>
        </div>
    
        <div class="form-group  ms-form-group">
          <label class="control-label col-xs-3" style="color:${tractor.horsepower eq version.horsepower ? '' : 'red;'}">11&nbsp;<span class="color-red">*</span>牵引车马力：</label>
          <div class="col-xs-3 pull-left">
            <p class="form-control-static" style="color:${tractor.horsepower eq version.horsepower ? '' : 'red;'}">${version.horsepower}</p>
          </div>
          
          <label class="control-label col-xs-2" style="color:${tractor.axles eq version.axles ? '' : 'red;'}">12&nbsp;<span class="color-red">*</span>轴数：</label>
          <div class="col-xs-3 pull-left">
            <p class="form-control-static" style="color:${tractor.axles eq version.axles ? '' : 'red;'}">${version.axles}</p>
          </div>
        </div>
        
        <div class="form-group  ms-form-group">
          <label class="control-label col-xs-3" style="color:${tractor.issuingTime eq version.issuingTime ? '' : 'red;'}">13&nbsp;<span class="color-red">*</span>发证日期：</label>
          <div class="col-xs-3 pull-left">
            <p class="form-control-static" style="color:${tractor.issuingTime eq version.issuingTime ? '' : 'red;'}"><fmt:formatDate value="${version.issuingTime}" pattern="yyyy-MM-dd"/></p>
          </div>
          
          <label class="control-label col-xs-2" style="color:${tractor.registrationTime eq version.registrationTime ? '' : 'red;'}">14&nbsp;<span class="color-red">*</span>注册日期：</label>
          <div class="col-xs-3 pull-left">
            <p class="form-control-static" style="color:${tractor.registrationTime eq version.registrationTime ? '' : 'red;'}"><fmt:formatDate value="${version.registrationTime}" pattern="yyyy-MM-dd"/></p>
          </div>
        </div>
    
        <div class="form-group  ms-form-group">
          <label class="control-label col-xs-3" style="color:${tractor.annualInspectionDate eq version.annualInspectionDate ? '' : 'red;'}">15&nbsp;<span class="color-red">*</span>年检有效期至：</label>
          <div class="col-xs-3 pull-left">
            <p class="form-control-static" style="color:${tractor.annualInspectionDate eq version.annualInspectionDate ? '' : 'red;'}"><fmt:formatDate value="${version.annualInspectionDate}" pattern="yyyy-MM"/></p>
          </div>
          
          <label class="control-label col-xs-2" style="color:${tractor.trainload eq version.trainload ? '' : 'red;'}">16&nbsp;<span class="color-red">*</span>装载量：</label>
          <div class="col-xs-3 pull-left">
            <p class="form-control-static" style="color:${tractor.trainload eq version.trainload ? '' : 'red;'}">${version.trainload}</p>
          </div>
        </div>
        
        <div class="form-group  ms-form-group">
          <label class="control-label col-xs-3" style="color:${tractor.vehicleType eq version.vehicleType ? '' : 'red;'}">17&nbsp;<span class="color-red">*</span>车辆类型（行驶证）：</label>
          <div class="col-xs-3 pull-left">
            <p class="form-control-static" style="color:${tractor.vehicleType eq version.vehicleType ? '' : 'red;'}">${tractor.vehicleType.description}</p>
          </div>
        </div>
        
        <div class="form-group  ms-form-group">  
          <label class="control-label col-xs-3" style="color:${empty version.drivingLicense ? '' : 'red;'}">18&nbsp;<span class="color-red">*</span>牵引车行驶证原件扫描件：</label>
          <div class="col-xs-3 pull-left">
            <p class="form-control-static">
              <a href="javascript:void(0);" class="btn view-img-btn ms-btn btn-default big-close-up" data-imgsrc="${tractor.drivingLicense}">查看原图片</a>&nbsp;
              <c:if test="${not empty version.drivingLicense}">
                <a href="javascript:void(0);" class="btn view-img-btn ms-btn btn-default big-close-up" data-imgsrc="${version.drivingLicense}">查看变更图片</a>
              </c:if>
            </p>
          </div>
        
          <label class="control-label col-xs-2" style="color:${empty version.drivingLicenseCopy ? '' : 'red;'}">19&nbsp;<span class="color-red">*</span>牵引车行驶证副本及检验页扫描件：</label>
          <div class="col-xs-3 pull-left">
            <p class="form-control-static">
              <a href="javascript:void(0);" class="btn view-img-btn ms-btn btn-default big-close-up" data-imgsrc="${tractor.drivingLicenseCopy}">查看原图片</a>&nbsp;
              <c:if test="${not empty version.drivingLicenseCopy}">
                <a href="javascript:void(0);" class="btn view-img-btn ms-btn btn-default big-close-up" data-imgsrc="${version.drivingLicenseCopy}">查看变更图片</a>
              </c:if>
            </p>
          </div>
        </div>
        
        <div class="form-group ms-form-group">
          <label class="control-label col-xs-3" style="color:${empty version.vehiclePhoto ? '' : 'red;'}">20&nbsp;<span class="color-red">*</span>车头45度角照片：</label>
          <div class="col-xs-3 pull-left">
            <p class="form-control-static">
              <a href="javascript:void(0);" class="btn view-img-btn ms-btn btn-default big-close-up" data-imgsrc="${tractor.vehiclePhoto}">查看原图片</a>&nbsp;
              <c:if test="${not empty version.vehiclePhoto}">
                <a href="javascript:void(0);" class="btn view-img-btn ms-btn btn-default big-close-up" data-imgsrc="${version.vehiclePhoto}">查看变更图片</a>
              </c:if>
            </p>
          </div>
          
          <label class="control-label col-xs-2" style="color:${empty version.vehicleContact ? '' : 'red;'}">21&nbsp;购车合同：</label>
          <div class="col-xs-3 pull-left">
            <p class="form-control-static">
              <a href="javascript:void(0);" class="btn view-img-btn ms-btn btn-default big-close-up" data-imgsrc="${tractor.vehicleContact}">查看原图片</a>&nbsp;
              <c:if test="${not empty version.vehicleContact}">
                <a href="javascript:void(0);" class="btn view-img-btn ms-btn btn-default big-close-up" data-imgsrc="${version.vehicleContact}">查看变更图片</a>
              </c:if>
            </p>
          </div>
        </div>
        
      </div>
        
      <div class="block-heading">
        <h5>GPS信息</h5>
      </div>
      
      <div class="form-horizontal ms-form form-personal-info">
        <div class="form-group ms-form-group">
          <label class="control-label col-xs-3 ">22&nbsp;GPS品牌：</label>
          <div class="col-xs-3 pull-left">
            <p class="form-control-static">${tractor.gps}</p>
          </div>
      
          <label class="control-label col-xs-2 ">23&nbsp;GPS绑定SIM卡号：</label>
          <div class="col-xs-3 pull-left">
            <p class="form-control-static">${tractor.simCard}</p>
          </div>
        </div>
        
        <div class="form-group ms-form-group">
          <label class="control-label col-xs-3">24&nbsp;GPS最后更新时间：</label>
          <div class="col-xs-3 pull-left">
            <p class="form-control-static">
              <c:choose>
                <c:when test="${not empty tractor.code}">
                  <fmt:formatDate value="${empty persist.vehicleGpsInfo(tractor.code) ? '' : persist.vehicleGpsInfo(tractor.code).lastModified}" pattern="yyyy-MM-dd HH:mm:ss"/>
                </c:when>
                <c:otherwise>无</c:otherwise>
              </c:choose>
            </p>
          </div>
      
          <label class="control-label col-xs-2 ">25&nbsp;GPS最后更新地点：</label>
          <div class="col-xs-3 pull-left">
            <p class="form-control-static">
              <c:choose>
                <c:when test="${not empty tractor.code}">
                  ${empty persist.vehicleGpsInfo(tractor.code) ? '无' : persist.vehicleGpsInfo(tractor.code).currentLocation}
                </c:when>
                <c:otherwise>无</c:otherwise>
              </c:choose>
            </p>
          </div>
        </div>
      </div>
      
    </div>
  </div>

  <%@ include file="/WEB-INF/include/script.jsp"%>

</body>
</html>